
import axios from 'axios'

function getToken(){
    const username='shsdsjzx';
    const password='dsjzx123';
    const domain = window.location.host;
    const tokenServer = `http://map.smi.sh.cegn.cn/RemoteTokenServer?request=getToken&username=${username}&password=${password}&clientid=ref.${domain}&expiration=1440&f=json`;
    return axios.get(tokenServer);
}

export default { getToken };